import { Hero, HeroDetail } from "../types/hero";
import RequestHttp from "../utils/request";

// 获取英雄列表
export const getHeroListAPI = (params: object) => RequestHttp.get<Hero[]>("/api/lol/search", params)

// 获取英雄详情
export const getHeroDetailAPI = (params: object) => RequestHttp.get<HeroDetail>('/api/lol/info', params)